//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package commands;

import common.ByteStream;

public class NeighborsSellAccept extends LogicCommand {
    private final int cmdId = 40;
    private final int neghborId;

    public NeighborsSellAccept(int ticks, int neghborId) {
        super(ticks);
        this.neghborId = neghborId;
    }

    public int getCommandId() {
        return 40;
    }

    public void encode(ByteStream stream) {
        stream.writeInt(40);
        stream.writeInt(this.neghborId);
        stream.writeInt(this.ticksWhenTouch().intValue());
    }
}
